﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using d1Common.Interface;

namespace d1Project.Modules.Common.do4A.Models
{
    public class Token : IToken
    {
        //Token ID
        [Key, MaxLength(64)]
        public string Id { get; set; }

        //认证方式
        public string AuthType { get; set; }

        //UserId
        [Index, MaxLength(64)]
        public string UserId { get; set; }

        //UserName
        public string UserName { get; set; }

        //RoleId
        public string RoleId { get; set; }

        //DeptId
        public string DeptId { get; set; }

        //AreaId
        public string AreaId { get; set; }

        //过期时间
        public DateTime ExpiredTime { get; set; }
    }
}